package com.xd.pre.modules.tpshop.service.impl;

import com.xd.pre.modules.tpshop.domain.TpShippingArea;
import com.xd.pre.modules.tpshop.mapper.TpShippingAreaMapper;
import com.xd.pre.modules.tpshop.service.ITpShippingAreaService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lx
 * @since 2020-06-03
 */
@Service
public class TpShippingAreaServiceImpl extends ServiceImpl<TpShippingAreaMapper, TpShippingArea> implements ITpShippingAreaService {

    @Autowired
    TpShippingAreaMapper shippingAreaMapper;
    @Override
    public TpShippingArea find_config_by_keyId(int $shipping_area_id) {
        return getById($shipping_area_id);
    }

    @Override
    public int find_shipping_area_id(String shipping_code, int city) {
        return shippingAreaMapper.find_shipping_area_id(shipping_code, city);
    }
    @Override
    public List<Integer> find_shipping_area_id(String shipping_code) {
        return shippingAreaMapper.find_shipping_area_id2(shipping_code);
    }
}
